package com.jvm.simulation.hotspot.attributes;

import com.jvm.simulation.hotspot.AbstractAttributeInfo;
import lombok.Data;

@Data
public class AttributeInfo extends AbstractAttributeInfo {

    protected int tableLength;
    private int attrNameIndex;
    private int attrLength;

    protected Item[] table;

    public void initTable() {
        table = new Item[tableLength];
    }

    // 用于存储klass的attribute
    private byte[] container;

    public void initContainer() {
        container = new byte[attrLength];
    }

    @Data
    protected  abstract class Item{

    };
}